package com.you.swagger.controller;

import java.util.*;

import org.objectweb.asm.*;

public class UserInterfaceImplDump implements Opcodes {

    public static byte[] dump() throws Exception {

        ClassWriter cw = new ClassWriter(0);
        FieldVisitor fv;
        MethodVisitor mv;
        AnnotationVisitor av0;

        cw.visit(52, ACC_PUBLIC + ACC_SUPER, "com/you/swagger/controller/UserInterfaceImpl", null, "java/lang/Object", new String[]{"com/you/swagger/controller/IUserInterface"});

        {
            av0 = cw.visitAnnotation("Lorg/springframework/stereotype/Controller;", true);
            av0.visitEnd();
        }
        {
            mv = cw.visitMethod(ACC_PUBLIC, "<init>", "()V", null, null);
            mv.visitCode();
            mv.visitVarInsn(ALOAD, 0);
            mv.visitMethodInsn(INVOKESPECIAL, "java/lang/Object", "<init>", "()V", false);
            mv.visitInsn(RETURN);
            mv.visitMaxs(1, 1);
            mv.visitEnd();
        }
        {
            mv = cw.visitMethod(ACC_PUBLIC, "getUserInfo", "(Lcom/you/swagger/entity/UserInfo;)Lcom/you/swagger/entity/UserInfo;", null, null);
            mv.visitParameter("userInfo", 0);
            mv.visitCode();
            mv.visitInsn(ACONST_NULL);
            mv.visitInsn(ARETURN);
            mv.visitMaxs(1, 2);
            mv.visitEnd();
        }
        {
            mv = cw.visitMethod(ACC_PUBLIC, "updateUserInfo", "(Ljava/lang/String;Ljava/lang/String;)Z", null, null);
            mv.visitParameter("userIds", 0);
            mv.visitParameter("userName", 0);
            mv.visitCode();
            mv.visitInsn(ICONST_0);
            mv.visitInsn(IRETURN);
            mv.visitMaxs(1, 3);
            mv.visitEnd();
        }
        cw.visitEnd();

        return cw.toByteArray();
    }
}
